package com.example.qjia.ui.fragment;

import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

import com.example.qjia.R;
import com.example.qjia.basic.BaseFragment;


public class VersionUpdateFragment extends BaseFragment {
    private TextView versionId;
    private Button checkUpdate;
    public VersionUpdateFragment(){

    }
    public static VersionUpdateFragment newInstance( ) {
        VersionUpdateFragment fragment = new VersionUpdateFragment();
        return fragment;
    }



    @Override
    public void init(View view) {
        versionId=(TextView)view.findViewById(R.id.version_id);
        checkUpdate=(Button)view.findViewById(R.id.check_up);
        checkUpdate.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                showMessage();
            }
        });

    }

    void showMessage(){
        Toast.makeText(getActivity(),"这已经是最新版本了",Toast.LENGTH_SHORT).show();
    }
    @Override
    public int getResourceId() {
        return R.layout.fragment_version_update;
    }


}
